<?php 
defined('RUN_KATANA') or die('Restricted access');
$katana->setAction('editor_profile');
$com->setButtonsContent(array 
(
	'0' => array 
	(	
		'title' => ucfirst($txt->getWord('save')),
		'href' => '',
		'onclick' => 'document.getElementById(\''.$com->getId().'_editor_profile\').submit();',
		'params' => array 
		( 'class' => 'bold', ),
	)
));
$forms['new_contact'] = $controller->getForms('new_contact');
$forms['new_location'] = $controller->getForms('new_location'); 
?>
<div class="row-fluid row">
	<div class="span4 col-md-4 col-sm-4 col-xs-4">
    	<form id="<?php echo $com->Id; ?>_editor_profile" action="<?php echo $katana->getFormAction(); ?>" method="post" enctype="multipart/form-data" name="editor_profile" role="form">
        	<h3><?php echo ucfirst($txt->getWord('your').' '.$txt->getWord('profile')); ?></h3>
            <div>
            	<?php if(is_object($user->getImageObject())): ?>
                <a class="fancyBox" href="<?php echo $user->getImageObject()->getLink(); ?>">
                <img src="<?php echo $user->getImageObject()->getLink(200, 150); ?>" /></a><br />
                <a href="?dpi=1"><?php echo ucfirst($txt->getWord('delete').' '.$txt->getWord('profile').$txt->getWord('image')); ?></a><br />
                <div class="v-space"></div>
                <?php endif; ?>
                <?php echo $ac->getForms($adc->getSetting('ProfileForm'))->getFieldsHTML(); ?><br />
            </div>
        </form>
        <?php if($ac->getSetting('password-change') > 0): ?><br />
        <form id="<?php echo $com->Id; ?>_password-change" action="<?php echo $katana->getFormAction(); ?>" method="post" enctype="multipart/form-data" name="password-change">
        <div class="com_list pass_change" <?php if($_REQUEST['action'] != 'password-change') { echo ' style="display:none;"'; } ?>>
            <h3><?php echo ucfirst($txt->getWord('password')); ?></h3>
            <fieldset class="com_form">
				<?php echo $ac->getForms('password-change')->getFieldsHTML(); ?><br />
            </fieldset>
        </form>
        </div>
        <?php endif; ?>
    </div>
    <div class="span8 col-md-8 col-sm-8 col-xs-8">
    	<?php include('profilePage.php'); ?>
		<?php include('contacts.php'); ?><br />
        <?php include('locations.php'); ?><br />
        <?php include('profileIframe.php'); ?><br />
        <?php include('commands.php'); ?><br />
    </div>
</div>
<div class="row">
	<div class="span12 col-md-12 col-sm-12 col-xs-12">
		<?php include('profileCredits.php'); ?>
        <?php include('profileStatus.php'); ?>
	</div>
</div>